package com.the8thfold.anton.users

import grails.plugin.multitenant.core.groovy.compiler.MultiTenant

@MultiTenant
class Role {

	String authority

	static mapping = {
		cache true
	}

	static constraints = {
		authority blank: false, unique: true
	}
}

public enum Roles {
    ROLE_ADMIN,
    ROLE_SCRIPT_ADMIN,
    ROLE_JOB_ADMIN,
    ROLE_JOB_RUN,
    ROLE_RESULTS_ADMIN,
    ROLE_RESULTS_VIEW
}
